/**
 * Copyright (c) 2018-2099, Chill Zhuang 庄骞 (bladejava@qq.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.restaurant.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 用户日薪表实体类
 *
 * @author Blade
 * @since 2025-02-18
 */
@Data
@TableName("restaurant_user_salary_day")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户日薪表")
public class UserSalaryDay extends TenantEntity {

    @Serial
	private static final long serialVersionUID = 1L;

    /**
     * 日期 yyyy-MM-dd
     */
    @Schema(description = "日期 yyyy-MM-dd")
    private String time;
    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String userName;
    /**
     * 月薪
     */
    @Schema(description = "月薪")
    private BigDecimal monthlySalary;
    /**
     * 日薪
     */
    @Schema(description = "日薪")
    private BigDecimal dailySalary;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
    /**
     * 考勤类型  1 出勤 2 休一天 3 病假 4 事假 5 旷工 6 迟到 7 休半天
     */
    @Schema(description = "考勤类型 1 出勤 2 休一天 3 病假 4 事假 5 旷工 6 迟到 7 休半天")
    private Integer type;


}
